package com.example.hellomap;

import com.example.hellomap.MainActivity;

import android.test.ActivityInstrumentationTestCase2;

public class Test_MyLocationListener extends  ActivityInstrumentationTestCase2<MainActivity>  {
	
	MainActivity 	myMain;
	
	public Test_MyLocationListener() {
		super(MainActivity.class);
	}	
	
    @Override
    protected void setUp() throws Exception {

        super.setUp();
        myMain = getActivity();
    }	

	public void test_myLocListener_isParentActivitySet() {
		
		assertNotNull(myMain.getMyLocListener().getParentActivity());
	}
	
	public void test_myLocListener_isProviderSet() {
		
		assertNotNull(myMain.getMyLocListener().getProvider());
	}
	
	public void test_myLocListener_isLocationManagerSet() {
		
		assertNotNull(myMain.getMyLocListener().getLocationManager());
	}
}
